/*
 * @Descripttion: 
 * @version: V1.0.0
 * @Author: LeonHe
 * @Date: 2021-08-03 22:52:58
 * @LastEditTime: 2021-10-31 00:34:43
 */
#ifndef __DETECTER_H_ 
#define __DETECTER_H_

#include "stm8s.h"

typedef struct
{
    uint8_t  detecterOffLine[2];
    uint8_t  detecterTimeOut[2];
    uint8_t  detecterPowerMax[2];
    uint8_t  detecterNormal[2];
}stDtecterDataDef;

extern stDtecterDataDef gDtecterData;

int8_t detecInit(void);
void detecAlarmTimerInit(void);
void detecAdcUpdateHandler(uint8_t channel, uint16_t value);
void detecPowerAjust(uint8_t channel);


#endif
